import { http } from "./../common/request.js";

/**
 * 登录
 * @param {*} data
 * @returns
 */

export default {
	// 获取微信 sessionKey
	getCode2Session(data) {
		data.branch_uuid = uni.getStorageSync("branch_uuid")
		return http.post('/user/wx-auth-code2-session',data);
	},
	// 进行云端登陆
	login(data) {
		data.branch_uuid = uni.getStorageSync("branch_uuid")
		return http.post('/user/login',data);
	},
	// 获取支付宝 userId
	getAliUserId(data) {
		data.branch_uuid = uni.getStorageSync("branch_uuid")
		return http.post('/user/getAliUserId',data);
	}
}
